\hypertarget{classTuna_1_1ScalarEquation}{
\subsection{Tuna::ScalarEquation$<$ Tscheme $>$ Class Template Reference}
\label{classTuna_1_1ScalarEquation}\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}}
}


This class derives from \hyperlink{classTuna_1_1GeneralEquation}{GeneralEquation} through B \& N trick.  


Inheritance diagram for Tuna::ScalarEquation$<$ Tscheme $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTuna_1_1ScalarEquation}
\end{center}
\end{figure}
\subsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Typeinfo$<$ Tscheme $>$::\hyperlink{classTuna_1_1ScalarEquation_a3dfb3d6e0b1330e8acfbb7087ea083a8}{prec\_\-t} \hyperlink{classTuna_1_1ScalarEquation_a3dfb3d6e0b1330e8acfbb7087ea083a8}{prec\_\-t}
\begin{DoxyCompactList}\small\item\em Precision used for the numerical operations. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTuna_1_1ScalarEquation_a9fd9e24143b3584280e188f1e0ddd6f2}{ScalarEquation} (ScalarField \&phi\_\-global, DiagMat \&matrix, ScalarField \&b)
\begin{DoxyCompactList}\small\item\em Main constructor. \end{DoxyCompactList}\item 
\hyperlink{classTuna_1_1ScalarEquation_a7343eb76aae95642f7d7d5494a51a867}{ScalarEquation} (ScalarField \&phi\_\-global, DiagMat \&matrix, ScalarField \&b, const floatTinyArray\_\-t \&deltas)
\begin{DoxyCompactList}\small\item\em Main constructor. \end{DoxyCompactList}\item 
Tscheme \& \hyperlink{classTuna_1_1ScalarEquation_a5ea21cc6e4ba35a7f5f01563a6211381}{asDerived} ()
\begin{DoxyCompactList}\small\item\em The Curiously Recursive Template Pattern (CRTP) is used. \end{DoxyCompactList}\item 
\hypertarget{classTuna_1_1ScalarEquation_a14ddad30d41e58360365e7ccab065fcc}{
bool \hyperlink{classTuna_1_1ScalarEquation_a14ddad30d41e58360365e7ccab065fcc}{calcCoefficients} ()}
\label{classTuna_1_1ScalarEquation_a14ddad30d41e58360365e7ccab065fcc}

\begin{DoxyCompactList}\small\item\em Call to the functions defined in the derived classes. \end{DoxyCompactList}\item 
bool \hyperlink{classTuna_1_1ScalarEquation_a1b98e9902cc30279054d7d7cd77d1cfe}{calcCoefficients} (const ScalarField \&nut)
\begin{DoxyCompactList}\small\item\em Function to calculate the coefficients of discrete equations for turbulent regime. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
\subsubsection*{template$<$typename Tscheme$>$class Tuna::ScalarEquation$<$ Tscheme $>$}

In this class some particular variables and methods for scalar PDE's are defined. This class is used to model FVM discretized general scalar PDE equations.

\begin{DoxyAuthor}{Author}
Luis M. de la Cruz \mbox{[} Mon May 4 16:20:22 CDT 2009 \mbox{]} 
\end{DoxyAuthor}


Definition at line 48 of file ScalarEquation.hpp.



\subsubsection{Member Typedef Documentation}
\hypertarget{classTuna_1_1ScalarEquation_a3dfb3d6e0b1330e8acfbb7087ea083a8}{
\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}!prec\_\-t@{prec\_\-t}}
\index{prec\_\-t@{prec\_\-t}!Tuna::ScalarEquation@{Tuna::ScalarEquation}}
\paragraph[{prec\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ typedef Typeinfo$<$Tscheme$>$::{\bf prec\_\-t} {\bf Tuna::ScalarEquation}$<$ Tscheme $>$::{\bf prec\_\-t}}}
\label{classTuna_1_1ScalarEquation_a3dfb3d6e0b1330e8acfbb7087ea083a8}


Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_a39e7293ae9e10a2fc90f422da1d28ecd}{Tuna::GeneralEquation$<$ ScalarEquation$<$ Tscheme $>$ $>$}.



Definition at line 53 of file ScalarEquation.hpp.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classTuna_1_1ScalarEquation_a9fd9e24143b3584280e188f1e0ddd6f2}{
\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}!ScalarEquation@{ScalarEquation}}
\index{ScalarEquation@{ScalarEquation}!Tuna::ScalarEquation@{Tuna::ScalarEquation}}
\paragraph[{ScalarEquation}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ {\bf Tuna::ScalarEquation}$<$ Tscheme $>$::{\bf ScalarEquation} (
\begin{DoxyParamCaption}
\item[{ScalarField \&}]{phi\_\-global, }
\item[{DiagMat \&}]{matrix, }
\item[{ScalarField \&}]{b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1ScalarEquation_a9fd9e24143b3584280e188f1e0ddd6f2}
The scalarfield {\ttfamily phi\_\-0} defined here is a reference to a global field variable. Here {\ttfamily phi\_\-0} is used as an old value of that field variable. 

Definition at line 71 of file ScalarEquation.hpp.

\hypertarget{classTuna_1_1ScalarEquation_a7343eb76aae95642f7d7d5494a51a867}{
\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}!ScalarEquation@{ScalarEquation}}
\index{ScalarEquation@{ScalarEquation}!Tuna::ScalarEquation@{Tuna::ScalarEquation}}
\paragraph[{ScalarEquation}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ {\bf Tuna::ScalarEquation}$<$ Tscheme $>$::{\bf ScalarEquation} (
\begin{DoxyParamCaption}
\item[{ScalarField \&}]{phi\_\-global, }
\item[{DiagMat \&}]{matrix, }
\item[{ScalarField \&}]{b, }
\item[{const floatTinyArray\_\-t \&}]{deltas}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1ScalarEquation_a7343eb76aae95642f7d7d5494a51a867}
The scalarfield {\ttfamily phi\_\-0} defined here is a reference to a global field variable. Here {\ttfamily phi\_\-0} is used as an old value of that field variable. 

Definition at line 86 of file ScalarEquation.hpp.



\subsubsection{Member Function Documentation}
\hypertarget{classTuna_1_1ScalarEquation_a5ea21cc6e4ba35a7f5f01563a6211381}{
\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}!asDerived@{asDerived}}
\index{asDerived@{asDerived}!Tuna::ScalarEquation@{Tuna::ScalarEquation}}
\paragraph[{asDerived}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ Tscheme\& {\bf Tuna::ScalarEquation}$<$ Tscheme $>$::asDerived (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1ScalarEquation_a5ea21cc6e4ba35a7f5f01563a6211381}
\hyperlink{classTuna_1_1ScalarEquation_a5ea21cc6e4ba35a7f5f01563a6211381}{asDerived()} gets an returns a reference to the derived class. 

Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_aac63dc10324dcfdd7aaabdc63ec0c67f}{Tuna::GeneralEquation$<$ ScalarEquation$<$ Tscheme $>$ $>$}.



Definition at line 102 of file ScalarEquation.hpp.

\hypertarget{classTuna_1_1ScalarEquation_a1b98e9902cc30279054d7d7cd77d1cfe}{
\index{Tuna::ScalarEquation@{Tuna::ScalarEquation}!calcCoefficients@{calcCoefficients}}
\index{calcCoefficients@{calcCoefficients}!Tuna::ScalarEquation@{Tuna::ScalarEquation}}
\paragraph[{calcCoefficients}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ bool {\bf Tuna::ScalarEquation}$<$ Tscheme $>$::calcCoefficients (
\begin{DoxyParamCaption}
\item[{const ScalarField \&}]{nut}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1ScalarEquation_a1b98e9902cc30279054d7d7cd77d1cfe}
Turbulent viscosity is passed as argument (nut) 

Definition at line 133 of file ScalarEquation.hpp.

